<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><bean:message key='com.application.systemmanager.notice_list' /></title>
	   <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
	</head>
	<body>
	    <html:form styleId="workBenchForm" action="listWarning.do?method=getWarningList" styleClass="simple">
	    <input type="hidden" id="totalPage" value="${totalPage}"/>
	       <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;我的工作台 &gt; 任务预警</td>
		    </tr>
		  </table>
		
		
   <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margb5">
             <tr>
				<td>
					<fmt:bundle basename="com.application.workbench.struts.ApplicationResources_workbench">
				        <display:table name="warningList" class="simple"  id="warning" pagesize="15" partialList="true" defaultsort="1" defaultorder="descending" size="resultSize" requestURI="listWarning.do?method=getWarningList"  > 
						<display:setProperty name="sort.amount" value="warningList"/>
							<display:column style="width:5%; text-align:center;"  property="bussType" titleKey="com.application.workbench.warningtype" 
							maxLength="5" sortable="true" headerClass="ctitle" value="23" decorator="com.manager.commons.DictCodeColumnDecorator" dictCode="BUSS_TYPE"/>
				    <display:column  sortable="true" title="任务" style="width:5%; text-align:center;">
				      <a href="#" style="color:blue;" onclick="showContent('${warning.id}','${warning.yfbussTaskType}');">${warning.projectName}</a>
				    </display:column>
					 <display:column property="rname"   sortable="true" title="指派人" style="width:5%; text-align:center;" />	 
				  
						<display:column property="completeDate" format="{0,date,yyyy-MM-dd}" sortable="true" title="任务截止时间" style="width:5%; text-align:center;" />
						  
 
					</display:table>
	              </fmt:bundle>

				</td>
			</tr>
		</table>
		<html:hidden styleId="type" property ="type"/>
<html:hidden styleId="workitemID" property ="workitemID"/>
     </html:form>
	</body>
</html>
<script>

function query(){
	document.forms[0].action="listWarning.do?method=getWarningList";
	document.forms[0].submit();
}

//查看公告
function view(){
	var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	    alert("一次只能查看一条记录！");
		return;
	}else{
		document.forms[0].action="viewNotice.do?method=viewNotice";
	    document.forms[0].submit();
	}
}


//查看具体信息
function showContent(workitemID,type){
    $("workitemID").value = workitemID;
    $("type").value = type;
	document.forms[0].action="openForm.do?method=openForm";
	document.forms[0].submit();
}
</script>
